package com.lujieni.myredis.redis.provider;

import com.lujieni.myredis.domain.po.Person;
import com.lujieni.myredis.domain.po.Student;
import com.lujieni.myredis.redis.ICacheProvider;
import org.springframework.stereotype.Component;

/**
 * @Package: com.lujieni.myredis.redis.provider
 * @ClassName: StudentProvider
 * @Author: lujieni
 * @Description: 1
 * @Date: 2021-02-20 17:37
 * @Version: 1.0
 */
@Component
public class StudentProvider implements ICacheProvider<String, Student> {

    @Override
    public Student get(String key) {
        Student student = new Student();
        student.setName("student");
        return student;
    }
}